import { GET_DATALIST } from '../actions/dict'

const defaultState = {
    dataList: []
}

export default function getDataList(state = defaultState, action) {
    switch (action.type) {
        case GET_DATALIST:
            return {
                dataList: action.data || []
            }
        default:
            return state
    }
}